#include"Sort.h"

void Print(int* a, int n)
{
	for (int i = 0; i < n; i++)
	{
		printf("%d  ", a[i]);
	}
	printf("\n");
}

void test()
{
	int a[10] = { 10,9,8,7,6,5,4,3,2,1 };
	printf("BubbleSort:");
	BubbleSort(a, 10);
	Print(a, 10);
}

void test1()
{
	int a[10] = { 10,9,8,7,6,5,4,3,2,1 };
	printf("InsertSort:");
	InsertSort(a, 10);
	Print(a, 10);
}

void test2()
{
	int a[10] = { 10,9,8,7,6,5,4,3,2,1 };
	printf("ShellSort:");
	ShellSort(a, 10);
	Print(a, 10);
}

void test3()
{
	int a[10] = { 10,9,8,7,6,5,4,3,2,1 };
	printf("CountSort:");
	CountSort(a, 10);
	Print(a, 10);
}

void test4()
{
	int a[10] = { 10,9,8,7,6,5,4,3,2,1 };
	printf("HeapSort:");
	HeapSort(a, 10);
	Print(a, 10);
}

void test5()
{
	int a[10] = { 10,9,8,7,6,5,4,3,2,1 };
	printf("SelectSort:");
	SelectSort(a, 10);
	Print(a, 10);
}

int main()
{
	 test();
	 test1();
	 test2();
	 test3();
	 test4();
	 test5();
	return 0;
}